/**
 * Created by GodRUI on 2021/8/28 10:51
 */
public class LazySingle {

    private static LazySingle lazySingle = null;

    private LazySingle(){

    }

    public static LazySingle getLazySingle(){

        if (lazySingle==null){

            synchronized (LazySingle.class){
                if (lazySingle==null){
                    lazySingle = new LazySingle();
                }
            }
        }

        return lazySingle;
    }

}
